<?
    require_once("config.php");
    
    switch ($_GET['action']) {
        case "check_project_name_validity":
            $name = $_GET['name'];
            if (is_dir("projects/$name")) echo 0;
            else echo 1;
        break;
    }
?>